package cn.zyx.order.service;

import cn.zyx.basic.service.IBaseService;
import cn.zyx.basic.util.PageList;
import cn.zyx.order.domain.AdoptOrder;
import cn.zyx.order.query.AdoptOrderQuery;
import cn.zyx.user.domain.LoginInfo;

import java.util.Map;

public interface IAdoptOrderService extends IBaseService<AdoptOrder> {
    /**
     * 领养订单结算
     * @param params
     * @param loginInfo
     * @return
     */
    String submit(Map<String, Object> params, LoginInfo loginInfo);

    /**
     * 后端用户查询自己的领养订单
     * @param query
     * @param loginInfoId
     * @return
     */
    PageList<AdoptOrder> queryAdmin(AdoptOrderQuery query, Long loginInfoId);

    /**
     * 前端用户查询自己领养订单
     * @param query
     * @param loginInfoId
     * @return
     */
    PageList<AdoptOrder> queryUser(AdoptOrderQuery query, Long loginInfoId);
}
